package com.example.demo.exception.throwtype;


import com.example.demo.exception.ResultCode;

import java.io.Serializable;

/**
 * 自定义异常类型
 * @author yangzhenyu
 * @version 1.0
 * @create 2018-09-14 17:28
 **/
public class RunException extends RuntimeException implements Serializable {

    //错误代码
    ResultCode resultCode;

    public RunException(ResultCode resultCode){
        this.resultCode = resultCode;
    }
    public ResultCode getResultCode(){
        return resultCode;
    }


}
